module ActiveAdmin
  module Views
    class IndexAsSlate < ActiveAdmin::Component

      def build(page_presenter, collection)
        add_class "blank_slate_container"
        collection.each do |obj|
          instance_exec(obj, &page_presenter.block)
        end
      end

      def self.index_name
        "slate"
      end
    end
  end
end
